Ubuntu 16.04
Sponsored Link

OpenStack Mitaka : Configure Cinder#2 (Service Node)
2016/06/02
 
Install OpenStack Block Storage (Cinder).
For this example, Install Cinder API Server on Control Node which Keystone/Glance/Nova API are already installed, and Install Cinder-Volume on Block Storage Service Node.
                                      +------------------+
                             10.0.0.50| [ Storage Node ] |
+------------------+            +-----+   Cinder-Volume  |
| [ Control Node ] |            | eth0|                  |
|     Keystone     |10.0.0.30   |     +------------------+
|      Glance      |------------+
|     Nova API     |eth0        |     +------------------+
|    Cinder API    |            | eth0| [ Compute Node ] |
+------------------+            +-----+   Nova Compute   |
                             10.0.0.51|                  |
                                      +------------------+

 
Configure Block Storage Service Node on this section.
[1] Install Cinder Volume.
root@storage:~#
apt-get -y install cinder-volume python-mysqldb
[2] Configure Cinder Volume.
root@storage:~#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

root@storage:~#
vi /etc/cinder/cinder.conf
# create new

[DEFAULT]
# IP address of this host

my_ip = 10.0.0.50
state_path = /var/lib/cinder
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
enable_v1_api = True
enable_v2_api = True
osapi_volume_listen = 0.0.0.0
osapi_volume_listen_port = 8776
auth_strategy = keystone
rpc_backend = rabbit
# specify Glance server

glance_api_servers = http://10.0.0.30:9292
scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
# MariaDB connection info

[database]
connection = mysql+pymysql://cinder:password@10.0.0.30/cinder
# Keystone auth info

[keystone_authtoken]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = servicepassword
[oslo_concurrency]
lock_path = $state_path/tmp
# RabbitMQ connection info

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.30
rabbit_port = 5672
rabbit_userid = openstack
rabbit_password = password
root@storage:~#
chmod 640 /etc/cinder/cinder.conf

root@storage:~#
chgrp cinder /etc/cinder/cinder.conf

root@storage:~#
systemctl restart cinder-volume
 
Tweet